package com.un.ebs.contract.domain;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (ContractItem)表实体类
 *
 * @author makejava
 * @since 2021-03-16 16:47:49
 */
@Data
@Component
@TableName("tb_contract_item")
@SuppressWarnings("serial")
public class ContractItem extends Model<ContractItem> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;
    
                
    @DbField(name = "contract_id",  length = 40 , precision = 0)
    private String contractId;
                
    @DbField(name = "sku_id",  length = 40 , precision = 0)
    private String skuId;
                
    @DbField(name = "price",  length = 18 , precision = 4)
    private Double price;
                
    @DbField(name = "qty",  length = 18 , precision = 4)
    private Double qty;
                
    @DbField(name = "supply_percent",  length = 18 , precision = 4)
    private Double supplyPercent;
                
    @DbField(name = "plan_deliver_date",  length = -1 , precision = 0)
    private Date planDeliverDate;
                
    @DbField(name = "source_item_id",  length = 40 , precision = 0)
    private String sourceItemId;
                
    @DbField(name = "remark",  length = 100 , precision = 0)
    private String remark;
                
    @DbField(name = "mapper_sku_code",  length = 50 , precision = 0)
    private String mapperSkuCode;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
}